<div class="box">
    
  <div class="box-header">

    <div class="row">
        <div class="col-sm-5">
            <ob_link><a class="btn export" url="{:url('exportApplyList')}"><i class="fa fa-download"></i> 导 出</a></ob_link>
        </div>
        
        <div class="col-sm-7">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">                  
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="支持昵称|用户名">
					<select name="stat" class="pull-right form-control" style="width:120px">
						<option value='9'>全部</option>
						<option value='0'>待审核</option>
						<option value='1'>已通过</option>
					</select>
                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('companylist')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>
                </div>
           </div>
        </div>
    </div>
    
  </div>
    
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>用户名</th>
		  <th>直推人数</th>
		  <th>申请时间</th>
          <th>状态</th>
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>{$vo.username}<br/>{$vo.name}</td>
				  <td>{$vo.num}</td>
				  <td>{$vo.create_time}</td>				  
				  <td>
					{if $vo.stat == 0}<span style="color:red">待审核<span>{/if}{if $vo.stat == 1}已通过{/if}  
                  </td>
                  <td>
						<ob_link><a class="ajax-get" href="{:url('setStats', array('id' => $vo['id'], 'stat' => (int)$vo['stat'],'user_id' => $vo['user_id']))}">{if $vo.stat==0}<i class="fa fa-edit"></i>通过{else/}<i class="fa fa-trash-o"></i>撤销{/if}</a>
						</ob_link>					
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>

  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>
<script>	
    //导出功能
    $(".export").click(function(){
       window.location.href = searchFormUrl($(".export"));
    });	
</script>